﻿using System;

class Program
{
    static void Main()
    {
        //We are given 5 integer numbers. Write a program that checks
        // if the sum of some subset of them is 0. Example: 3, -2, 1, 1, 8 --> 1+1-2=0.

        //Поздравления за тези, които са решили задачата по по-интелигентен начин! :)

        Console.WriteLine("Enter five variables.");
        Console.Write("Enter first variable: ");
        int firstNumber = int.Parse(Console.ReadLine());
        Console.Write("Enter second variable: ");
        int secondNumber = int.Parse(Console.ReadLine());
        Console.Write("Enter third variable: ");
        int thirdNumber = int.Parse(Console.ReadLine());
        Console.Write("Enter fourth variable: ");
        int fourthNumber = int.Parse(Console.ReadLine());
        Console.Write("Enter fifth variable: ");
        int fifthNumber = int.Parse(Console.ReadLine());

        if (firstNumber + secondNumber + thirdNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2}, {3}, {4}", firstNumber, secondNumber, thirdNumber, fourthNumber, fifthNumber);
        }

        if (firstNumber + secondNumber + thirdNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2}, {3}", firstNumber, secondNumber, thirdNumber, fourthNumber);
        }
        if (secondNumber + thirdNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2}, {3}", secondNumber, thirdNumber, fourthNumber, fifthNumber);
        }
        if (firstNumber + thirdNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2}, {3}", firstNumber, thirdNumber, fourthNumber, fifthNumber);
        }
        if (firstNumber + secondNumber + thirdNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2}, {3}", firstNumber, secondNumber, thirdNumber, fifthNumber);
        }
        if (firstNumber + secondNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero:{0}, {1}, {2}, {3}", firstNumber, secondNumber, fourthNumber, fifthNumber);
        }
        if (thirdNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", thirdNumber, fourthNumber, fifthNumber);
        }
        if (secondNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("TThe sum of these numbers is zero: {0}, {1}, {2} ", secondNumber, fourthNumber, fifthNumber);
        }
        if (firstNumber + fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, fourthNumber, fifthNumber);
        }
        if (secondNumber + thirdNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", secondNumber, thirdNumber, fifthNumber);
        }
        if (firstNumber + thirdNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, thirdNumber, fifthNumber);
        }
        if (firstNumber + secondNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, secondNumber, fifthNumber);
        }
        if (secondNumber + thirdNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", secondNumber, thirdNumber, fourthNumber);
        }
        if (firstNumber + thirdNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, thirdNumber, fourthNumber);
        }
        if (firstNumber + secondNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, secondNumber, fourthNumber);
        }
        if (firstNumber + secondNumber + thirdNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}, {2} ", firstNumber, secondNumber, thirdNumber);
        }

        if (fourthNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", fourthNumber, fifthNumber);
        }
        if (thirdNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", thirdNumber, fifthNumber);
        }
        if (secondNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", secondNumber, fifthNumber);
        }
        if (firstNumber + fifthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", firstNumber, fifthNumber);
        }
        if (thirdNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1}", thirdNumber, fourthNumber);
        }
        if (secondNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero:{0}, {1} ", secondNumber, fourthNumber);
        }
        if (firstNumber + fourthNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", firstNumber, fourthNumber);
        }
        if (secondNumber + thirdNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: {0}, {1} ", secondNumber, thirdNumber);
        }
        if (firstNumber + thirdNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: |{0}|, |{1}| ", firstNumber, thirdNumber);
        }
        if (firstNumber + secondNumber == 0)
        {
            Console.WriteLine("The sum of these numbers is zero: |{0}|, |{1}| ", firstNumber, secondNumber);
        }
    }
}

